package com.zoe.sec06ssoclient.controller;

import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Zoe
 * @Date: 2021/04/01
 * @Description
 */
@RestController
public class UserController {

    @RequestMapping("/")
    public Object getCurrentUser(Authentication authentication) {
        return authentication;
    }
}
